#include "util.h"
string get_dir (string const& str)
{
    size_t found;
    found=str.find_last_of("/\\");
    return str.substr(0,found);
}
